import request from '../../../utils/unirequest';
import type { IChangePassword } from './interface';
import type { LuchResponse } from '../../../type/common';
export default function useLoginApi() {
  return {
    // 修改密码
    ChangePassword: (data: IChangePassword) => request.post('/api/_account/changepassword', data),
    // 发送短信
    sendloginsms: (data: {
      Mobile: string, OldPhone?: string, Type: "changePassword" | "changeMobile" | "guestBind"
    }): Promise<LuchResponse> => request.post('/api/_account/sendloginsms', data),
    // 修改手机号
    changemobile: (data: {
      Code: string,
      Mobile: string
      OldPhone: string
    }): Promise<LuchResponse> => request.post('/api/_account/changemobile', data),
  }
}



